<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
echo '<pre>';   


$valueArray = array(0=>array('fm_email','akki@gmail.com'),
                    1=>array('fm_mobile'=>array(9167331277,9167331519))
                    );

function inMultiArray($needle,$heystack) {
    if (array_key_exists($needle,$heystack) or in_array($needle,$heystack)){
             return true;
        } else {
            $return = false;
            foreach (array_values($heystack) as $value) {
                if (is_array($value) and !$return) {
                    $return = inMultiArray($needle,$value);
                }
            }
            return $return;
        }
    }

$valColumnArray=array(
	array("newfield"=>'New Column 1',
		  "cTitle"=>'new column 1',
		 "cDisplayValue"=>'',
		 "cAfter"=>array('fm_name','lm_name','fm_address')),
	array("cName"=>'New Column 1',
		 "cTitle"=>'new column 1',
		 "cDisplayValue"=>'',
		 "cAfter"=>'fm_email'),
	array("cName"=>'New Column 1',
			"cTitle"=>'new column 1',
			"cDisplayValue"=>'',
			"cAfter"=>'fm_address'),
	array("cName"=>'New Column 1',
		 "cTitle"=>'new column 1',
		 "cDisplayValue"=>'',
		 "cAfter"=>'fm_pincode'),
	array("cName"=>'New Column 1',
		 "cTitle"=>'new column 1',
		 "cDisplayValue"=>'',
	 "cAfter"=>'fm_city') ,
         "email_column"=>"email"
         
);

include '../ magicphplibraray/Magic_Paging_Model.php';
$pg= new Magic_Paging_Model();
$_GET["start"] != '' ? $start = $_GET["start"] : $start = 0;



echo $pg->previousLink('multiarray.php?', $start, 50,10, '');
echo $pg->middleLink("50",'multiarray.php?',$start,10,3, '');
echo $pg->nextLink('multiarray.php?', $start, 50,10, '') ;


/**
 * header 
 * sorting 
 * 
 * 
 * 
 *  
 */

?>
